package demo.service;

import demo.domain.DemoAddress;
import demo.domain.DemoUser;

import java.util.List;

/**
 * Created by lliu on 2015/11/6.
 */
public interface DemoUserService {

    void save(DemoUser demoUser);

    void delete(DemoUser demoUser);

    void delete(Long id);

    void update(DemoUser demoUser);

    List<DemoUser> queryAllUsers();


    DemoUser get(Long id);

    void addDemoUserAndAddress(DemoUser demoUser, DemoAddress demoAddress);

    void editDemoUserAndAddress(DemoUser demoUser, DemoAddress demoAddress);
}
